<?php defined('SYSPATH') or die('No direct script access.');

class Controller_AJAX_Ses extends Controller {
    
	public function action_save_session()
	{
		$key 	= $_GET['key'];
		$value	= $_GET['value'];
		$ret = Session::instance()->set($key, $value);
		$this->response->body(
			json_encode(array('success'=>TRUE))
		);
	}
	public function action_index()
	{
		$ret = Session::instance()->set('lover', 'To Anh');
		echo Debug::dump($ret);
		//echo ('In the session controler');
	}
}